// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(600,"Chief Yeldosa");
	set_name(601,"Envoy Pollux");
	set_name(602,"Watcher Ravil");
	set_name(30002,"Fort Guard");
	set_name(30003,"Fort Guard");

//	set_attack_range(,);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	//if ((set_ter1 == 0) && (gf(0,0) > 0)) {
	//	set_ter1 = 1;
	//	set_terrain(,,,);
	//	}
		
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(600,"Welcome, [P].");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(600,"The fort can be rebuilt.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(600,"I can't see the Raasa.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(600,"A frightening time.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(600,"Our governor is wise.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"I am an envoy.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"I am from the coast.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"I serve Haven.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"The Raasa must be picked.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"I go to Prova Krug.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(602,"I must be answered.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(602,"I am a Watcher.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(602,"Our wall is lost.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(602,"I have been sent.");

	if (gf(80,12) >= 8) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(600,"We've been challenged.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(600,"Prepare for war.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"War is close.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(601,"The Raasa has gone mad.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(602,"Challenge is made.");

		}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
